package com.clj.rocketmq_example.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.clj.rocketmq_example.dal.entity.UserEntity;
import com.clj.rocketmq_example.service.UserService;

@RestController
public class HelloController {
	@Autowired
	private UserService userService;

	@GetMapping("/hello")
	public UserEntity hello() {
		return userService.selectById(1L);

	}

	@GetMapping("/trans/test")
	public Boolean transTest() {
		return userService.transMessageTest();

	}
}
